package com.blb.community.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 社区互动表
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("zy_community_interaction")
@ApiModel(value = "ZyCommunityInteraction对象", description = "社区互动表")
public class ZyCommunityInteraction implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("id")
    private Long interactionId;

    @ApiModelProperty("小区ID")
    private Long communityId;

    @ApiModelProperty("创建人ID")
    private String createBy;

    @ApiModelProperty("更新者ID")
    private String updateBy;
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("删除状态0默认1删除")
    private Integer delFlag;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建人ID")
    private Long userId;
}
